package com.ysh.service.impl;


import com.ysh.dao.UserDao;
import com.ysh.dao.impl.UserDaoImpl;
import com.ysh.domain.User;
import com.ysh.service.UserService;

import java.util.List;

/*
    Service 业务层实现类
 */
public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDaoImpl();
    /*
        添加用户
     */
    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }

    /*
        查询用户信息
     */
    @Override
    public List<User> findUser() {
        return userDao.findUser();
    }
}
